<?php
/**
 * .htaccess file management system module.
 *
 * @author Martin "DevelX" Jurča
 * @version 2009-01-24
 */
interface HtAccess {
    /**
     * Generates .htaccess file from information gathered from all installed
     * modules.
     *
     */
    public function install();

    /**
     * Deletes .htaccess file.
     *
     */
    public function uninstall();

    /**
     * Event handler for moduleInstalled event. Regenerates the .htaccess file.
     *
     * @param mixed $details Event details.
     * @param String $source Event source.
     * @return boolean True on success, false otherwise.
     */
    public function &onModuleInstalled(&$details, $source = '');

    /**
     * Event handler for moduleUninstalled event. Regenerates the .htaccess
     * file.
     *
     * @param String $details Event details.
     * @param String $source Event source.
     * @return boolean True on success, false otherwise.
     */
    public function &onModuleUninstalled(&$details, $source = '');
}
?>
